package org.darkforest.enums;
/**
 * 
 */
public enum CharNumberEnum {
	A(1 ,"A"),
	B(2 ,"B"),
	C(3 ,"C"),
	D(4 ,"D"),
	E(5 ,"E"),
	F(6 ,"F"),
	G(7 ,"G"),
	H(8 ,"H"),
	I(9 ,"I"),
	J(10,"J"),
	K(11,"K"),
	L(12,"L"),
	M(13,"M"),
	N(14,"N"),
	O(15,"O"),
	P(16,"P"),
	Q(17,"Q"),
	R(18,"R"),
	S(19,"S"),
	T(20,"T"),
	U(21,"U"),
	V(22,"V"),
	W(23,"W"),
	X(24,"X"),
	Y(25,"Y"),
	Z(26,"Z");





	private int value;
	private String text;

	private CharNumberEnum(int value, String text){
		this.value = value;
		this.text = text;
	}



	public static String getTextByValue(int value){
		for(CharNumberEnum e : CharNumberEnum.values()){
			if(e.value == value){
				return e.text;
			}
		}
		return null;
	}

	
	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
	
	

}
